//
//  InAppPayment.h
//  ImageRecognition
//
//  Created by yusaiyan on 2018/7/28.
//  Copyright © 2018年 QunYu. All rights reserved.
//

#import <Foundation/Foundation.h>

/// 支付成功的Block
typedef void(^InAppPaymentSuccess)(id responseObject);
/// 支付失败的Block
typedef void(^InAppPaymentFailed)(NSError *error);

@interface InAppPayment : NSObject

+ (instancetype)shareInstance;

/**
 创建支付

 @param productId 产品ID
 @param success 成功
 @param failed 失败
 */
- (void)createPaymentWithPID:(NSString *)productId success:(InAppPaymentSuccess)success failed:(InAppPaymentFailed)failed;

@end
